package com.hycc.base;

import java.util.function.Supplier;

public class SupplierDemo {
    public static void main(String[] args) {
        Supplier<String> supplier = new Supplier<String>() {
            @Override
            public String get() {
                return "get() abc";
            }
        };

        System.out.println(supplier.get());

        Supplier<Integer> supplier1 = ()->{return 1024;};
        System.out.println(supplier1.get());
    }
}
